﻿<%@ Page Language="C#" MasterPageFile="~/ManageCenter/SystemSetMaster.master" AutoEventWireup="true" CodeFile="UpdateDoc.aspx.cs" Inherits="ManageCenter_UpdateDoc" Title="住房保障管理中心" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div style="text-align:right; padding-right:60px; height:35px; padding-top:10px">
        &nbsp;<asp:Button ID="btnadddoc" runat="server" Text="添加证件" Height="28px" Width="112px" OnClick="btnadddoc_Click" />
    </div>
    <asp:GridView ID="gvshowdoc" runat="server" AutoGenerateColumns="False" CssClass="GridViewStyle" EmptyDataText="暂无证件材料" Width="100%" OnRowCommand="gvshowdoc_RowCommand" OnRowDataBound="gvshowdoc_RowDataBound">
        <FooterStyle CssClass="FooterStyle" />
        <RowStyle CssClass="RowStyle" />
        <EmptyDataRowStyle CssClass="EmptyRowStyle" />
        <PagerStyle CssClass="PagerStyle" />
        <SelectedRowStyle CssClass="SelectedRowStyle" />
        <HeaderStyle CssClass="HeaderStyle" />
        <EditRowStyle CssClass="EditRowStyle" />
        <AlternatingRowStyle CssClass="AltRowStyle" />
        <Columns>
            <asp:TemplateField HeaderText="ID">
                <ItemTemplate>
                    <%#Eval("doc_id")%>
                </ItemTemplate>
                <ItemStyle Width="15%" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="证件名">
                <ItemTemplate>
                    <%#Eval("doc_name")%>
                </ItemTemplate>
                <ItemStyle Width="25%" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="证件分类">
                <ItemTemplate>
                    <%#Eval("doc_type")%>
                </ItemTemplate>
                <ItemStyle Width="15%" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="备注">
                <ItemTemplate>
                    <%#Eval("doc_remark")%>
                </ItemTemplate>
                <ItemStyle Width="30%" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>
                    <asp:LinkButton ID="lkbtnupd" runat="server" CommandName="upd" CommandArgument='<%#Eval("doc_id") %>'>修改</asp:LinkButton>&nbsp;&nbsp;&nbsp;
                    <asp:LinkButton ID="lkbtndel" runat="server" CommandName="del" CommandArgument='<%#Eval("doc_id") %>'>删除</asp:LinkButton>
                </ItemTemplate>
                <ItemStyle Width="15%" />
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div style="width:100%; padding-top:15px; text-align:center">
        <asp:Panel ID="panlupddoc" runat="server" Width="50%" Visible="false">
            <h3 style="color:Blue">证件资料修改</h3>
            <div style="text-align:left">
                证 件 名：<asp:TextBox ID="txbdocnameup" runat="server"></asp:TextBox><br />
                证件分类：<asp:DropDownList ID="ddltypeup" runat="server">
                    <asp:ListItem>最低收入家庭</asp:ListItem>
                    <asp:ListItem>低收入家庭</asp:ListItem>
                    <asp:ListItem>其他家庭</asp:ListItem>
                </asp:DropDownList><br />
                备 &nbsp;&nbsp; 注：<asp:TextBox ID="txbremarkup" runat="server" Height="48px" TextMode="MultiLine" Width="288px"></asp:TextBox><br />
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
                <asp:Button ID="txbupdate" runat="server" Text="修改" Width="73px" OnClick="txbupdate_Click" />
                <asp:Label ID="lbldocid" runat="server" Visible="False"></asp:Label></div>
        </asp:Panel>
        <asp:Panel ID="panladddoc" runat="server" Width="50%" Visible="false">
            <h3 style="color:Blue">添加证件材料</h3>
            <div style="text-align:left">
                证 件 名：<asp:TextBox ID="txbdocname" runat="server"></asp:TextBox><br />
                证件分类：<asp:DropDownList ID="ddltype" runat="server">
                    <asp:ListItem>最低收入家庭</asp:ListItem>
                    <asp:ListItem>低收入家庭</asp:ListItem>
                    <asp:ListItem>其他家庭</asp:ListItem>
                </asp:DropDownList><br />
                备 &nbsp;&nbsp; 注：<asp:TextBox ID="txbremark" runat="server" Height="47px" TextMode="MultiLine" Width="294px"></asp:TextBox><br />
                &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
                <asp:Button ID="btnadd" runat="server" Text="添加" Width="71px" OnClick="btnadd_Click" />
            </div>
        </asp:Panel>
    </div>
</asp:Content>

